const {showLog} = require('../server.config.js')  
const dayjs = require('dayjs')
const format = ''
module.exports = {
    log(msg){
        if(showLog){
            let now = dayjs()
            console.log(`[${now.format('YYYY-MM-DD HH:mm:ss')}]${msg}`)
        }
    },
    logOs(msg){
        let now = dayjs()
        console.log(`[${now.format('YYYY-MM-DD HH:mm:ss')}]${msg}`)
    }
}